package com.violet.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * @author wqf
 * @date 2021/07/21
 * 类描述：逻辑删除类
 */
@Setter
@Getter
public class LogicEntity extends PhysicalEntity {
    /**
     * 删除标识：0-未删除，1-已删除
     */
    @Schema(description = "数据状态 0-未删除，1-已删除")
    @TableLogic
    @TableField(value = "deleted", fill = FieldFill.INSERT_UPDATE)
    private Integer deleted = 0;
}
